import request from '/@/utils/request';

// 查询补签卡列表
export function listCard(query?: Object) {
  return request({
    url: '/module/sign/replenish/card/list',
    method: 'get',
    params: query
  })
}

// 查询补签卡详细
export function getCard(id?: number) {
  return request({
    url: '/module/sign/replenish/card/' + id,
    method: 'get'
  })
}

// 新增补签卡
export function addCard(data?: Object) {
  return request({
    url: '/module/sign/replenish/card',
    method: 'post',
    data: data
  })
}

// 修改补签卡
export function updateCard(data?: Object) {
  return request({
    url: '/module/sign/replenish/card',
    method: 'put',
    data: data
  })
}

// 删除补签卡
export function delCard(id?: number) {
  return request({
    url: '/module/sign/replenish/card/' + id,
    method: 'delete'
  })
}

// 导出补签卡
export function exportCard(query?: Object) {
  return request({
    url: '/module/sign/replenish/card/export',
    method: 'get',
    params: query
  })
}
